home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 201-225 / disk_217 / snipit / patch.doc < prev    next >
Text File  |  1992-05-06  |  1KB  |  44 lines

  1. KeyMap patcher:
  2. ==============
  3.  
  4. The program "patch" will "fix" SnipIt to work with foreign, custom, and the
  5. Dvorak keymaps.  This measure is a stopgap "bandaid" (i.e., hack) until a
  6. more appropriate handling of KeyMaps is employed by SnipIt.
  7.  
  8. Make sure that (a copy of) "snipit" and a file named "snipit.keys" are in
  9. the 'current directory'.  Simply incant:
  10.  
  11.     > patch
  12.  
  13. and SnipIt will be modified according to the data in the "snipit.keys" file.
  14.  
  15. The file "snipit.keys" has a format like the following (this example is
  16. the default- for the 'usa0' keymap):
  17.  
  18. 40 81 AA 83 84 85 87 2A
  19. 89 8A 88 8C 38 0B 39 3A
  20. 0A 01 02 03 04 05 06 07
  21. 08 09 A9 29 B8 0C B9 BA
  22. 82 A0 B5 B3 A2 92 A3 A4
  23. A5 97 A6 A7 A8 B7 B6 98
  24. 99 90 93 A1 94 96 B4 91
  25. B2 95 B1 1A 0D 1B 86 8B
  26. 00 20 35 33 22 12 23 24
  27. 25 17 26 27 28 37 36 18
  28. 19 10 13 21 14 16 34 11
  29. 32 15 31 9A 8D 9B 80
  30.  
  31. It should be a list of 95 hexadecimal numbers, each corresponding to the
  32. ASCII codes 32-126 (95 codes- ' ' thru '~').  The hex number is the I.D.
  33. of the keyboard key (as revealed in the Appendix to the AmigaDOS Technical
  34. Manual and other sources).  If the keyboard key must be "shifted" in order
  35. to achieve the corresponding ASCII code, then the hex keycode number is
  36. "OR"ed with an 0x80 (high bit on).
  37.  
  38. The patch program simply searches the SnipIt program file looking for the
  39. original hardwired table, and then overwrites the 95 code values.
  40. Consequently, you need to run "patch" on the original copy of SnipIt.
  41.  
  42. -scott
  43.  
  44.